package com.hehao.java_basic.design_mode.creational.abstractFactory;

public class Client {
    public static void main(String[] args) {
        AbstractFactory abstractFactory1 = new ConcreteFactory1();
        AbstractProductA productA1 = abstractFactory1.createProductA();
        productA1.showA();
        AbstractProductB productB1 = abstractFactory1.createProductB();
        productB1.showB();
        AbstractFactory abstractFactory2 = new ConcreteFactory1();
        AbstractProductA productA = abstractFactory2.createProductA();
        productA.showA();
        AbstractProductB productB = abstractFactory2.createProductB();
        productB.showB();
    }
}
